﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Commerce/Views/Shared/Backend.Master"
    Inherits="System.Web.Mvc.ViewPage<IPromotionRule>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:"Settings".Localize() %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3 class="title">
        <%:"Settings".Localize() %></h3>
    <div class="common-form">
        <% using (Html.BeginForm())
           { %>
        <fieldset>
            <legend></legend>
            <table>
                <tbody>
                    <% var view = this.Model.Promotion.Views.Settings(this.Model);
                       if (view != null)
                       {
        
                    %>
                    <%:
                Html.Action("Settings", this.Model.Promotion.Name, view.ViewData )%>
                    <%} %>
                </tbody>
            </table>
            <%: Html.HiddenFor(m => m.Id) %>
        </fieldset>
        <p class="buttons">
            <input type="submit" name="save" value="Save" class="button" />
        </p>
        <%} %>
    </div>
</asp:Content>
